Given:

As we can see that (x-5)≤0 on [2,5] and (x+2)≥0 on [5,8]









I = 9


10